import request from "@/utils/request";

/**
 * @description: 销售看板，销售订单分析
 * @return {*}
 */
export function getSalesBoardXsdd(params) {
  return request({
    url: "/salesBoard/left/xsdd",
    method: "get",
    params,
  });
}

/**
 * @description: 销售看板，销售出库分析
 * @return {*}
 */
export function getSalesBoardXsck(params) {
  return request({
    url: "/salesBoard/left/xsck",
    method: "get",
    params,
  });
}

/**
 * @description: 销售出库本期，同期 本币金额
 * @return {*}
 */
export function getSalesBoardXsckDb() {
  return request({
    url: "/salesBoard/right/xsck/db",
    method: "get",
  });
}
/**
 * @description: 销售出库本期，同期 数量
 * @return {*}
 */
export function getSalesBoardXsckDbQty() {
  return request({
    url: "/salesBoard/right/xsck/dbQty",
    method: "get",
  });
}
/**
 * @description: 订单准交率
 * @return {*}
 */
export function getSalesBoardDdzjl() {
  return request({
    url: "/salesBoard/left/ddzjl",
    method: "get",
  });
}

/**
 * @description: 销售地区分析
 * @return {*}
 */
export function getSalesBoardXsdq(params) {
  return request({
    url: "/salesBoard/xsdq",
    method: "get",
    params,
  });
}

/**
 * @description: 销售出库检验合格率
 *
 */
export function getSalesQualificationRate(params) {
  return request({
    url: "/salesBoard/qualificationRate",
    method: "get",
    params,
  });
}

/**
 * @description: 销售地区分析（世界）
 * @return {*}
 */
export function getSalesBoardXsdqWorld(params) {
  return request({
    url: "/salesBoard/xsdqWorld",
    method: "get",
    params,
  });
}

/**
 * @description: 销售地区分析（中国）
 * @return {*}
 */
export function getSalesBoardXsdqChina(params) {
  return request({
    url: "/salesBoard/xsdqChina",
    method: "get",
    params,
  });
}
